<template>
  <div>
    <el-tree :data="restreedata"
             @node-click="handleNodeClick"
             highlight-current></el-tree>
  </div>
</template>

<script>
	export default {
		name: "ResourceTree",
		data() {
			return {
				restreedata: [
					{
						label: '数据源',
						children: [{
							label: '二级 1-1',
              text: 'aaa'
						}, {
							label: '二级 1-1'
						}, {
							label: '二级 1-1'
						}, {
							label: '二级 1-1'
						},]
					},
					{}
				]
			}
		},
    methods: {
			handleNodeClick(node) {
				console.log(node);
			}
    }
	}
</script>

<style scoped>

</style>